package com.qiaoba.module.demo.listener;

import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * RabbitMq消息接收
 *
 * @author ailanyin
 * @date 2023-09-03 19:10:57
 */
@Component
@Slf4j
public class RabbitMqReceiver {

    @RabbitListener(queues = "test")
    public void receiveMessage(String message) {
        log.info("Received message: " + message);
    }
}
